package com.yc.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.yc.enums.StatusEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class LoginUserDto implements Serializable {

    @Serial
    private static final long serialVersionUID = 3639881651245184346L;
    /**
     * 主键
     */
    private long id;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    @JsonIgnore
    private String password;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 性别
     */
    private Integer sex;

    /**
     * 手机
     */
    private String phone;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 状态
     */
    private StatusEnum status;

    /**
     * 类型
     */
    private Integer type;

    private String wxOpenId;

    private String wxUnionId;

    /**
     * 权限
     */
    private List<String> permissionList;
}
